"""
演示while循环基础练习题：求1-100的和
"""
t = 0
for i in range(1, 100):
    t += i
print(t)


# sum = 0
# i = 1
# while i<=100:
#     sum += i
#     i += 1

print(f"1-100累加的和是：{sum}")
